﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace MCP.Data.CF_Entities
{
	public class User
	{
		[Key]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		public int ID { get; set; }

		[Required]
		public string Username { get; set; }
		[Required]
		public string Password { get; set; }

		public Settings Settings { get; set; }

		public virtual ICollection<Check> Checks { get; set; }
	}

	[ComplexType]
	public class Settings
	{
		public double? MonthIncome { get; set; }
		public double? MinBalance { get; set; }
		public string Email { get; set; }
	}
}